package models

import "time"

type FixedTemplate struct {
	ID        int       `form:"id" valid:"Required" json:"id" gorm:"primary_key"`
	Name      string    `form:"name" json:"name"`
	Cate      int       `form:"cate" json:"cate"`
	Cover     string    `form:"cover" json:"cover"`
	Path      string    `form:"path" json:"path"`
	Clazz     string    `form:"clazz" json:"clazz"`
	Type      int       `form:"type" json:"type"`
	Sort      int       `form:"sort" json:"sort"`
	Describe  string    `form:"describe" json:"describe"`
	Content   string    `form:"content" json:"content"`
	IsEnabled int       `form:"is_enabled" json:"is_enabled"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (t *FixedTemplate) TableName() string {
	return "personal_page_template"
}